package com.fr.cell.editor;

import com.fr.base.Style;
import com.fr.report.FloatElement;
import com.fr.report.cellElement.TextFormat;
import com.fr.report.core.ReportHelper;

public class GeneralFloatEditor extends TextFloatEditor
{
  public Object getFloatEditorValue()
    throws Exception
  {
    Object localObject = super.getFloatEditorValue();
    FloatElement localFloatElement = getFloatElement();
    Style localStyle = localFloatElement.getStyle();
    if ((localStyle != null) && (localStyle.getFormat() != null) && (localStyle.getFormat() == TextFormat.getInstance()))
      return localObject;
    return ReportHelper.convertGeneralStringAccordingToExcel(localObject);
  }
}